feat: add logging support and SSE event discrimination#85
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
feat: add logging support and SSE event discrimination#85fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
Add configurable logging through LogConfig on ClientOptions with silent-by-default behavior. Implement new SSE event-level discrimination support for streaming APIs with discriminated union handling. Remove deprecated InputStream-based file upload methods from LabReportClient. Key changes: - Add logging() builder method to ClientOptions with LogConfig support - Add SSE_EVENT_DISCRIMINATED stream type for discriminated union events - Add fromSseWithEventDiscrimination() factory methods to Stream class - Remove parserCreateJob() overloads accepting InputStream parameters - Update API documentation to reflect multiple file upload support 🌿 Generated with Fern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version Bump: Removed public parserCreateJob() methods that accept InputStream parameters from LabReportClient and AsyncLabReportClient.
logging()method onClientOptions.Builder. Logging is silent by default and can be configured with aLogConfiginstance. Enhanced Server-Sent Events (SSE) streaming now supports event-level discrimination for APIs that use discriminated unions in SSE event payloads via newfromSseWithEventDiscrimination()methods on theStreamclass.getJobId()method has been removed from theParsingJobclass. Existing code that calls this method will need to be updated. The SDK now supports an optionalaccessNotesfield in patient address types (PatientAddress,PatientAddressCompatible, andPatientAddressWithValidation) and adds support for derived readiness column expressions in query operations.accessNotesfield in theUsAddressclass. Address handling in user information has been updated to use the more specificUserAddresstype.getMarkers()method now accepts an optionallab_slugparameter for filtering markers by lab. Method documentation has also been updated to better describe functionality.getMarkers()method and includes iOS/Android SDK version headers for manual provider connections to improve debugging and analytics.ConvertCompendiumBodyandSearchCompendiumBodyrequest classes. AddedLabAccountClientwithgetTeamLabAccounts()method for managing lab accounts. Enhanced request builders across the SDK with additional property methods.RawLabAccountClientwithgetTeamLabAccounts()method for retrieving team lab accounts with filtering by account ID and status. Lab test order creation now supports an optionalclinicalNotesfield for providing additional clinical context.additionalProperty(key, value)andadditionalProperties(Map)methods, providing enhanced extensibility for all request types.additionalProperty()andadditionalProperties()are now available on request builders across the SDK, allowing developers to include custom key-value pairs in API requests.additionalProperty()andadditionalProperties()are now available on all Vitals request builders. These methods allow passing custom key-value pairs for extended functionality.additionalProperty()andadditionalProperties()methods available on all vitals request builders, enabling flexible extension of requests with custom key-value pairs.additionalProperty()andadditionalProperties()methods on builder classes. This enables passing custom fields that are preserved during API communication. TheAppointmentBookingRequestclass also includes a new optionalappointmentNotesfield, and a newAppointmentPscLabsenum is available for Quest and Sonora Quest lab providers.additionalProperty()andadditionalProperties()are available on all data type builders for flexible property handling. The SDK also introduces the newCanonicalCandidateclass for laboratory test canonical matching with LOINC code support.appointmentNotesfield available on appointment objects to capture additional context. Enhanced builder patterns withadditionalProperty()andadditionalProperties()methods for greater flexibility when constructing objects.additionalProperty()andadditionalProperties()are now available on client-facing type builders, allowing programmatic addition of custom properties during object construction.additionalProperty()andadditionalProperties()are now available on all model builders, allowing developers to set custom properties during object construction for better extensibility.additionalProperty()andadditionalProperties()methods are now available on builder classes for data types, allowing custom fields to be added to extend the base schema. Also addedINSULIN_PUMPas a new source type for menstrual cycle data.additionalProperty()andadditionalProperties()are now available on all response model builders, providing a fluent API for working with dynamic properties in API responses. TheClientFacingSleepCycleSourceTypeenum also includes a newINSULIN_PUMPvalue.additionalProperty()andadditionalProperties()are now available on all ClientFacing model builders to set custom properties that will be preserved during serialization.additionalProperty()andadditionalProperties()methods are now available on all client-facing type builders. These methods allow you to set custom key-value pairs that will be included when the object is serialized.ConvertCompendiumResponseclass andCompendiumSearchLabsenum are available for working with lab test compendiums.additionalProperty()andadditionalProperties()are now available on model classes for flexible handling of additional JSON properties. A newGetTeamLabAccountsResponsemodel has also been added.additionalProperty()andadditionalProperties()methods for setting custom key-value pairs on objects that support additional properties.additionalProperty()andadditionalProperties()methods available on all grouped data type builders for handling custom fields in API responses.additionalProperty()andadditionalProperties()are now available on all data type builders for handling dynamic properties. Additionally, a newDERIVED_READINESSenum value has been added toIndexColumnExprIndexfor indexing derived readiness data.additionalProperty(String key, Object value)andadditionalProperties(Map<String, Object> additionalProperties)methods. This enables handling of API responses with extra fields not explicitly defined in the model schema.PerLabCandidatetype available for lab test candidate information with LOINC codes, CPT codes, and confidence scoring. Enhanced builder pattern support across existing types with additional property methods.